<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::get('/user', function (Request $request) {
//    return $requeust->ser();
//})->middleware('auth:api');

$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
    //$api->get('users/{id}', 'App\Api\v1\Controllers\UserController@show');
    $api->get('users/{id}', 'App\Http\Api\Controllers\UsersController@show');
    $api->post('userinfo/{id}', 'App\Http\Api\Controllers\UsersController@userinfo');
    $api->get('test', 'App\Http\Api\Controllers\UsersController@test');

});